package com.eos.orm.mybatis.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.eos.orm.mybatis.dao.SysOperatorMapper;
import com.eos.orm.mybatis.model.SysOperator;
import com.eos.orm.mybatis.model.SysOperatorExample;
/**
 * sys_operator系统运营商表CURD操作
 * @author sz
 *
 */
public class SysOperatorMapperImpl extends AbstractSqlSessionFactory implements
		SysOperatorMapper {

	public int countByExample(SysOperatorExample example) {
		return 0;
	}

	public int deleteByExample(SysOperatorExample example) {
		return 0;
	}

	public int deleteByPrimaryKey(Integer id) {
		return 0;
	}

	public int insert(SysOperator record) {
		return 0;
	}

	public int insertSelective(SysOperator record) {
		return 0;
	}

	public List<SysOperator> selectByExample(SysOperatorExample example) {
		List<SysOperator> templist = new ArrayList<SysOperator>();
		SqlSession session = sqlSessionFactory.openSession();
		try{
			SysOperatorMapper mapper = session.getMapper(SysOperatorMapper.class);
			templist = mapper.selectByExample(example);
			mapper = null;
		}catch(Exception e){
			System.out
			.println("com.eos.orm.mybatis.dao.impl.SysOperatorMapperImpl.selectByExample throws exception:"
					+ e.getMessage());
		}finally{
			session.close();
		}
		return templist;
	}

	public SysOperator selectByPrimaryKey(Integer id) {
		return null;
	}

	public int updateByExample(SysOperator record, SysOperatorExample example) {
		return 0;
	}

	public int updateByExampleSelective(SysOperator record,
			SysOperatorExample example) {
		return 0;
	}

	public int updateByPrimaryKey(SysOperator record) {
		return 0;
	}

	public int updateByPrimaryKeySelective(SysOperator record) {
		return 0;
	}

}
